package com.zmn.oms.services.interfaces.nonstandard;

import com.zmn.oms.model.entity.nonstandard.OrderNonstandard;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 类描述：
 *
 * @author SongWeidong
 * @date 2020/07/30 19:22
 */
public interface OrderNonstandardService {

    /**
     * 通过主键查询非标信息
     * @param nonstandardId
     * @return
     */
    OrderNonstandard findNonstandardByKey(Long nonstandardId);

    /**
     * 通过主键查询非标信息
     * @param orderIdList
     * @return
     */
    List<OrderNonstandard> listNonstandardByOrderIdList(List<Long> orderIdList);

    /**
     * 通过工单id查询非标信息
     * @param orderId
     * @return
     */
    List<OrderNonstandard> listNonstandardByOrderId(Long orderId);

    /**
     * 新增
     * @param nonstandardList
     */
    void insertNonstandardList(@Param("nonstandardList") List<OrderNonstandard> nonstandardList);

    /**
     * 批量修改
     * @param nonstandardList
     */
    void updateBatch(@Param("nonstandardList") List<OrderNonstandard> nonstandardList);

    /**
     * 清除非标信息
     * @param orderId
     */
    void deleteByOrderId(Long orderId);
}
